/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.dao;

import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import model.dao.exceptions.NonexistentEntityException;
import model.pojo.Disciplina;

/**
 *
 * @author leonidia
 */
public interface DisciplinaInterface extends Serializable {

    void create(Disciplina disciplina);

    void destroy(Integer id) throws NonexistentEntityException;

    void edit(Disciplina disciplina) throws NonexistentEntityException, Exception;

    Disciplina findDisciplina(Integer id);

    List<Disciplina> findDisciplinaEntities();

    List<Disciplina> findDisciplinaEntities(int maxResults, int firstResult);

    int getDisciplinaCount();

    EntityManager getEntityManager();
    
}
